Optimal. Leaf size=721 \[ \frac {\sqrt {g+h x} (d e-c f) (-2 a f h+b e h+b f g) \sqrt {\frac {(c+d x) (b e-a f)}{(a+b x) (d e-c f)}} \operatorname {EllipticF}\left (\sin ^{-1}\left (\frac {\sqrt {e+f x} \sqrt {b g-a h}}{\sqrt {a+b x} \sqrt {f g-e h}}\right ),-\frac {(b c-a d) (f g-e h)}{(b g-a h) (d e-c f)}\right )}{f^2 h \sqrt {c+d x} \sqrt {b g-a h} \sqrt {f g-e h} \sqrt {-\frac {(g+h x) (b e-a f)}{(a+b x) (f g-e h)}}}+\frac {(e+f x) \sqrt {b g-a h} \sqrt {\frac {(a+b x) (f g-e h)}{(e+f x) (b g-a h)}} \sqrt {\frac {(c+d x) (f g-e h)}{(e+f x) (d g-c h)}} (a d f h-b (-c f h+d e h+d f g)) \Pi \left (\frac {f (b g-a h)}{(b e-a f) h};\sin ^{-1}\left (\frac {\sqrt {b e-a f} \sqrt {g+h x}}{\sqrt {b g-a h} \sqrt {e+f x}}\right )|\frac {(d e-c f) (b g-a h)}{(b e-a f) (d g-c h)}\right )}{f^2 h^2 \sqrt {a+b x} \sqrt {c+d x} \sqrt {b e-a f}}+\frac {\sqrt {a+b x} \sqrt {c+d x} \sqrt {g+h x}}{h \sqrt {e+f x}}-\frac {\sqrt {a+b x} \sqrt {d g-c h} \sqrt {f g-e h} \sqrt {\frac {(g+h x) (d e-c f)}{(e+f x) (d g-c h)}} E\left (\sin ^{-1}\left (\frac {\sqrt {f g-e h} \sqrt {c+d x}}{\sqrt {d g-c h} \sqrt {e+f x}}\right )|\frac {(b e-a f) (d g-c h)}{(b c-a d) (f g-e h)}\right )}{f h \sqrt {g+h x} \sqrt {-\frac {(a+b x) (d e-c f)}{(e+f x) (b c-a d)}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.67, antiderivative size = 721, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.189, Rules used = {173, 176, 424, 170, 419, 165, 537} \[ \frac {(e+f x) \sqrt {b g-a h} \sqrt {\frac {(a+b x) (f g-e h)}{(e+f x) (b g-a h)}} \sqrt {\frac {(c+d x) (f g-e h)}{(e+f x) (d g-c h)}} (a d f h-b (-c f h+d e h+d f g)) \Pi \left (\frac {f (b g-a h)}{(b e-a f) h};\sin ^{-1}\left (\frac {\sqrt {b e-a f} \sqrt {g+h x}}{\sqrt {b g-a h} \sqrt {e+f x}}\right )|\frac {(d e-c f) (b g-a h)}{(b e-a f) (d g-c h)}\right )}{f^2 h^2 \sqrt {a+b x} \sqrt {c+d x} \sqrt {b e-a f}}+\frac {\sqrt {g+h x} (d e-c f) (-2 a f h+b e h+b f g) \sqrt {\frac {(c+d x) (b e-a f)}{(a+b x) (d e-c f)}} F\left (\sin ^{-1}\left (\frac {\sqrt {b g-a h} \sqrt {e+f x}}{\sqrt {f g-e h} \sqrt {a+b x}}\right )|-\frac {(b c-a d) (f g-e h)}{(d e-c f) (b g-a h)}\right )}{f^2 h \sqrt {c+d x} \sqrt {b g-a h} \sqrt {f g-e h} \sqrt {-\frac {(g+h x) (b e-a f)}{(a+b x) (f g-e h)}}}+\frac {\sqrt {a+b x} \sqrt {c+d x} \sqrt {g+h x}}{h \sqrt {e+f x}}-\frac {\sqrt {a+b x} \sqrt {d g-c h} \sqrt {f g-e h} \sqrt {\frac {(g+h x) (d e-c f)}{(e+f x) (d g-c h)}} E\left (\sin ^{-1}\left (\frac {\sqrt {f g-e h} \sqrt {c+d x}}{\sqrt {d g-c h} \sqrt {e+f x}}\right )|\frac {(b e-a f) (d g-c h)}{(b c-a d) (f g-e h)}\right )}{f h \sqrt {g+h x} \sqrt {-\frac {(a+b x) (d e-c f)}{(e+f x) (b c-a d)}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 165
Rule 170
Rule 173
Rule 176
Rule 419
Rule 424
Rule 537
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b x} \sqrt {c+d x}}{\sqrt {e+f x} \sqrt {g+h x}} \, dx &=\frac {\sqrt {a+b x} \sqrt {c+d x} \sqrt {g+h x}}{h \sqrt {e+f x}}-\frac {((d e-c f) (f g-e h)) \int \frac {\sqrt {a+b x}}{\sqrt {c+d x} (e+f x)^{3/2} \sqrt {g+h x}} \, dx}{2 f h}+\frac {((d e-c f) (b f g+b e h-2 a f h)) \int \frac {1}{\sqrt {a+b x} \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{2 f^2 h}+\frac {(a d f h-b (d f g+d e h-c f h)) \int \frac {\sqrt {e+f x}}{\sqrt {a+b x} \sqrt {c+d x} \sqrt {g+h x}} \, dx}{2 f^2 h}\\ &=\frac {\sqrt {a+b x} \sqrt {c+d x} \sqrt {g+h x}}{h \sqrt {e+f x}}+\frac {\left ((a d f h-b (d f g+d e h-c f h)) \sqrt {\frac {(f g-e h) (a+b x)}{(b g-a h) (e+f x)}} \sqrt {\frac {(f g-e h) (c+d x)}{(d g-c h) (e+f x)}} (e+f x)\right ) \operatorname {Subst}\left (\int \frac {1}{\left (h-f x^2\right ) \sqrt {1+\frac {(-b e+a f) x^2}{b g-a h}} \sqrt {1+\frac {(-d e+c f) x^2}{d g-c h}}} \, dx,x,\frac {\sqrt {g+h x}}{\sqrt {e+f x}}\right )}{f^2 h \sqrt {a+b x} \sqrt {c+d x}}+\frac {\left ((d e-c f) (b f g+b e h-2 a f h) \sqrt {\frac {(b e-a f) (c+d x)}{(d e-c f) (a+b x)}} \sqrt {g+h x}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+\frac {(b c-a d) x^2}{d e-c f}} \sqrt {1-\frac {(b g-a h) x^2}{f g-e h}}} \, dx,x,\frac {\sqrt {e+f x}}{\sqrt {a+b x}}\right )}{f^2 h (f g-e h) \sqrt {c+d x} \sqrt {-\frac {(b e-a f) (g+h x)}{(f g-e h) (a+b x)}}}+\frac {\left ((d e-c f) (f g-e h) \sqrt {a+b x} \sqrt {-\frac {(-d e+c f) (g+h x)}{(d g-c h) (e+f x)}}\right ) \operatorname {Subst}\left (\int \frac {\sqrt {1+\frac {(-b e+a f) x^2}{b c-a d}}}{\sqrt {1-\frac {(f g-e h) x^2}{d g-c h}}} \, dx,x,\frac {\sqrt {c+d x}}{\sqrt {e+f x}}\right )}{f (-d e+c f) h \sqrt {\frac {(-d e+c f) (a+b x)}{(b c-a d) (e+f x)}} \sqrt {g+h x}}\\ &=\frac {\sqrt {a+b x} \sqrt {c+d x} \sqrt {g+h x}}{h \sqrt {e+f x}}-\frac {\sqrt {d g-c h} \sqrt {f g-e h} \sqrt {a+b x} \sqrt {\frac {(d e-c f) (g+h x)}{(d g-c h) (e+f x)}} E\left (\sin ^{-1}\left (\frac {\sqrt {f g-e h} \sqrt {c+d x}}{\sqrt {d g-c h} \sqrt {e+f x}}\right )|\frac {(b e-a f) (d g-c h)}{(b c-a d) (f g-e h)}\right )}{f h \sqrt {-\frac {(d e-c f) (a+b x)}{(b c-a d) (e+f x)}} \sqrt {g+h x}}+\frac {(d e-c f) (b f g+b e h-2 a f h) \sqrt {\frac {(b e-a f) (c+d x)}{(d e-c f) (a+b x)}} \sqrt {g+h x} F\left (\sin ^{-1}\left (\frac {\sqrt {b g-a h} \sqrt {e+f x}}{\sqrt {f g-e h} \sqrt {a+b x}}\right )|-\frac {(b c-a d) (f g-e h)}{(d e-c f) (b g-a h)}\right )}{f^2 h \sqrt {b g-a h} \sqrt {f g-e h} \sqrt {c+d x} \sqrt {-\frac {(b e-a f) (g+h x)}{(f g-e h) (a+b x)}}}+\frac {\sqrt {b g-a h} (a d f h-b (d f g+d e h-c f h)) \sqrt {\frac {(f g-e h) (a+b x)}{(b g-a h) (e+f x)}} \sqrt {\frac {(f g-e h) (c+d x)}{(d g-c h) (e+f x)}} (e+f x) \Pi \left (\frac {f (b g-a h)}{(b e-a f) h};\sin ^{-1}\left (\frac {\sqrt {b e-a f} \sqrt {g+h x}}{\sqrt {b g-a h} \sqrt {e+f x}}\right )|\frac {(d e-c f) (b g-a h)}{(b e-a f) (d g-c h)}\right )}{f^2 \sqrt {b e-a f} h^2 \sqrt {a+b x} \sqrt {c+d x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 15.05, size = 6667, normalized size = 9.25 \[ \text {Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {b x + a} \sqrt {d x + c}}{\sqrt {f x + e} \sqrt {h x + g}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.16, size = 18077, normalized size = 25.07 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {b x + a} \sqrt {d x + c}}{\sqrt {f x + e} \sqrt {h x + g}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\sqrt {a+b\,x}\,\sqrt {c+d\,x}}{\sqrt {e+f\,x}\,\sqrt {g+h\,x}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a + b x} \sqrt {c + d x}}{\sqrt {e + f x} \sqrt {g + h x}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________